﻿
@using KRM.Core

@using KRM.Core.Library
@model KRM.Core.tblBook

@{
    ViewBag.Title = "Request Details";
    Layout = "/views/shared/_HRLayout.cshtml";
    ViewBag.UrlLink = "/HolidayRequest/Requests";
}
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            Holiday Request <small>View holiday request</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb" style="margin-bottom: 10px;">
            <li>
                <i class="icon-home"></i>
                <a href="/Home">Home</a> 
                <span class="icon-angle-right"></span>
            </li>
            <li><a href="/HolidayRequest/Requests"> Holiday Request</a></li>
        </ul>

        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        <input type="hidden" name="bookId" value="@Model.Id"/>
        <input type="hidden" name="userApprove" value="@Users.Current(User.Identity.Name).HRPersonalId"/>
        <div class="form-group">@if (@Model.BookStatusId == (int)BookStatus.Pending) {<a class="btn blue" href="/HolidayRequest/EditRequest/@Model.Id">Edit Request <i class="icon-edit"></i></a>
        }
        </div>
        
        <div class="portlet">
            <div class="portlet-title">
                <div class="caption"><i class="icon-info-sign"></i>Detail</div>
                <div class="tools">
                    <a href="" class="collapse"></a>
                </div>
            </div>
            <div class="portlet-body" id="">
                @Html.Partial("/Views/HolidayManagement/_RequestInfo.cshtml")
            </div>
        </div>
        @Html.Partial("/Views/HolidayManagement/_RequestActionInfo.cshtml")

    </div>

</div>

